package com.cloudkinto.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.util.Date;
import java.util.function.LongFunction;

@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("t_mail_record")
public class MailRecordDo extends Model<MailRecordDo> {
    private static final long serialVersionUID=1L;
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;
    @TableField("order_id")
    private Long orderId;
    @TableField("recipient")
    private String recipient;
    @TableField("template_id")
    private Long templateId;
    @TableField("template_name")
    private String templateName;
    @TableField("shop")
    private String shop;
    @TableField("platform_order_no")
    private String platformOrderNo;
    @TableField("platform_code")
    private String platformCode;
    //发件人邮箱
    @TableField("mail_no_send")
    private String mailNoSend;
    //收件人邮箱
    @TableField("mail_no_receive")
    private String mailNoReceive;
    @TableField("send_status")
    private Integer sendStatus;
    @TableField("send_method")
    private Integer sendMethod;
    @TableField("store_id")
    private Long storeId;
    @TableField("delete_flag")
    private Integer deleteFlag;
    @TableField("send_time")
    private Date sendTime;
    @TableField("times_stamp")
    private Long timesStamp;
    @TableField("error_message")
    private String errorMessage;

}